-- GENERATED SPELL FOR [Warlord Tartek] --


function spell0_28105(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(29426,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28105', 610, 1)
end

function spell1_28105(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28105', 30280, 1)
end

function spell2_28105(pUnit, Event) --@Sweeping Strikes,Self--
pUnit:FullCastSpellOnTarget(35429,pUnit)
pUnit:RegisterEvent('Sorts_28105', 10308, 1)
end

function Sorts_28105(pUnit, Event)
local choix_sorts_28105 = math.random(0, 2)
if choix_sorts_28105 == 0 then
pUnit:RegisterEvent('spell0_28105', 1, 1)
end
if choix_sorts_28105 == 1 then
pUnit:RegisterEvent('spell1_28105', 1, 1)
end
if choix_sorts_28105 == 2 then
pUnit:RegisterEvent('spell2_28105', 1, 1)
end
end

function mob28105_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28105', math.random(1500, 3000), 1)
end

function mob28105_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28105_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28105_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28105, 1, 'mob28105_Action')
RegisterUnitEvent(28105, 2, 'mob28105_Leave')
RegisterUnitEvent(28105, 3, 'mob28105_Kill')
RegisterUnitEvent(28105, 4, 'mob28105_Die')
